package com.uls.ycl.mapper;

import java.util.List;
import com.uls.ycl.domain.RepairRequest;
import com.uls.ycl.vo.LineVo;

/**
 * 报修请求Mapper接口
 * 
 * @author ycl
 * @date 2024-11-06
 */
public interface RepairRequestMapper 
{
    /**
     * 查询报修请求
     * 
     * @param requestId 报修请求主键
     * @return 报修请求
     */
    public RepairRequest selectRepairRequestByRequestId(Long requestId);

    /**
     * 查询报修请求列表
     * 
     * @param repairRequest 报修请求
     * @return 报修请求集合
     */
    public List<RepairRequest> selectRepairRequestList(RepairRequest repairRequest);

    /**
     * 新增报修请求
     * 
     * @param repairRequest 报修请求
     * @return 结果
     */
    public int insertRepairRequest(RepairRequest repairRequest);

    /**
     * 修改报修请求
     * 
     * @param repairRequest 报修请求
     * @return 结果
     */
    public int updateRepairRequest(RepairRequest repairRequest);

    /**
     * 删除报修请求
     * 
     * @param requestId 报修请求主键
     * @return 结果
     */
    public int deleteRepairRequestByRequestId(Long requestId);

    /**
     * 批量删除报修请求
     * 
     * @param requestIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRepairRequestByRequestIds(Long[] requestIds);


    /**
     * 根据流程id查询学生
     * @param flowInstanceId
     * @return
     */
    public RepairRequest selectRepairRequestFlowId(Long flowInstanceId);



    /**
     * 根据流程id和其他属性查询学生
     * @param
     * @return
     */
    public RepairRequest selectRepairRequestFlowIdOther(RepairRequest request);

    //报表
    public List<LineVo> selectLineVo();

}
